7559b0d5ae38b7bd5b5c8a38300fd22af9902114,beetl-core/src/main/java/org/beetl/core/parser/BeetlAntlrErrorStrategy.java,BeetlAntlrErrorStrategy,reportNoViableAlternative,#Parser#NoViableAltException#,92
Before Change
// String msg = "no viable alternative at input " + escapeWSAndQuote(input);
BeetlException exception = new BeetlParserException(BeetlException.PARSER_VIABLE_ERROR,
escapeWSAndQuote(input), e);
exception.token = this.getGrammarToken(e.getOffendingToken());
throw exception;
}
After Change
input = "<未知输入>";
}
// String msg = "no viable alternative at input " + escapeWSAndQuote(input);
BeetlException exception = new BeetlParserException(BeetlException.PARSER_VIABLE_ERROR,
escapeWSAndQuote(input), e);
// exception.token = this.getGrammarToken(e.getOffendingToken());
exception.pushToken(this.getGrammarToken(e.getOffendingToken()));
throw exception;
}